package com.qianhe.demo;

import com.github.qianhe.sdk.QHConfig;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Component
@Configuration
public class MyQHConfig extends QHConfig {

    @Value("${QH.appid}")
    private String appId;
    @Value("${QH.secret}")
    private String secret;
    @Value("${QH.gateway}")
    private String gateway;

    @Override
    public String getAppID() {
        return appId;
    }

    @Override
    public String getSecret() {
        return secret;
    }

    @Override
    public String getQHDomain() {
        return gateway;
    }
}
